import request from '@/utils/request'

// 查询VIN码白名单列表
export function listVin(query) {
  return request({
    url: '/business/vin/list',
    method: 'get',
    params: query
  })
}

// 查询VIN码白名单详细
export function getVin(id) {
  return request({
    url: '/business/vin/getInfoById/' + id,
    method: 'get'
  })
}

// 新增VIN码白名单
export function addVin(data) {
  return request({
    url: '/business/vin/add',
    method: 'post',
    data: data
  })
}

// 修改VIN码白名单
export function updateVin(data) {
  return request({
    url: '/business/vin/edit',
    method: 'put',
    data: data
  })
}

// 删除VIN码白名单
export function delVin(id) {
  return request({
    url: '/business/vin/remove/' + id,
    method: 'delete'
  })
}
